package cn.wl.gulimall.member.service;

import cn.wl.gulimall.member.exception.PhoneExsitException;
import cn.wl.gulimall.member.exception.UserNameExistException;
import cn.wl.gulimall.member.vo.MemberLoginVo;
import cn.wl.gulimall.member.vo.MemberRegistVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.wl.common.utils.PageUtils;
import cn.wl.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author wl666
 * @email malegod958@163.com
 * @date 2021-04-29 11:20:18
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhoneUnique(String email) throws PhoneExsitException;

    void checkUserName(String userName) throws UserNameExistException;

    MemberEntity login(MemberLoginVo vo);
}

